<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../head/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="window.resource.manager"/></title>
<script type="text/javascript">
//功能模块
var window_resource_function ='<spring:message code="window.resource.function"/>';
//数据模块
var window_resource_data ='<spring:message code="window.resource.data"/>';
//角色选择
var window_resource_role ='<spring:message code="window.resource.role"/>';
//帐户选择
var window_resource_account ='<spring:message code="window.resource.account"/>';

//button角色选择
var button_resource_role ='<spring:message code="button.resource.role"/>';
//button帐户选择
var button_resource_account ='<spring:message code="button.resource.account"/>';

//允许
var lable_permission_allowed ='<spring:message code="lable.permission.allowed"/>';
//禁止
var lable_permission_refused ='<spring:message code="lable.permission.refused"/>';
//继承
var lable_permission_inherited ='<spring:message code="lable.permission.inherited"/>';
//资源名称
var lable_resource_label ='<spring:message code="lable.resource.label"/>';


//提交路径
var retrieveResource_ = '<z:ukey key="retrieveResource"  context="admin"/>';
//应用系统
var craapphelper_= '<z:ukey key="craAppHelper"  context="admin"/>';

var initAccountInfo_ = '<z:ukey key="initAccountInfo"  context="admin"/>';
var initRoleInfo_ = '<z:ukey key="initRoleInfo"  context="admin"/>';
var editpermissions_ = '<z:ukey key="editPermissions"  context="admin"/>';

</script>

<script type="text/javascript"
	src="<%=localServer%>/page/resource/resource_manage.js"></script>
</head>
<body>
	<div >
		<fieldset>
			<legend><spring:message code="window.resource.manager"/></legend>
			<form action="" method="post">
				<table>
					<tr>
						<td><label for="name"><spring:message code="lable.application"/></label></td>
						<td><select id="cra_app" name="cra_app" style="width:300px" onchange="craAppChange()">
						</select></td>
					</tr>
				</table>
			</form>
		</fieldset>
	</div>


	<div id="resource_mafnage"
		style="width: 820px; height: auto;">
		<div title='<spring:message code="window.resource.function"/>' selected="true">
			<table id="function_module"></table>
		</div>
		<div title='<spring:message code="window.resource.data"/>'>
			<table id="data_module"></table>
		</div>
	</div>
	<!-- 功能模块选中的帐户信息 -->
	<input type="hidden" value="" id="fn_select_account_ids" />
	<input type="hidden" value="" id="fn_select_account_names" />
	<!-- 数据模块选中的帐户信息 -->
	<input type="hidden" value="" id="da_select_account_ids" />
	<input type="hidden" value="" id="da_select_account_names" />
	
	<!-- 功能模块选中的角色信息 -->
	<input type="hidden" value="" id="fn_select_role_ids" />
	<input type="hidden" value="" id="fn_select_role_names" />
	<!-- 数据模块选中的角色信息 -->
	<input type="hidden" value="" id="da_select_role_ids" />
	<input type="hidden" value="" id="da_select_role_names" />
	
	<!-- 帐户选择 -->
	<div id="select_account" style="display: none; width: 640px; height: 450px;top:0px;left:0px;"
		title="资源查询">
		<iframe width="100%"  style="top:0px;left:0px"  height="100%" id="account_search" name="frame" frameborder="0" scrolling="no"></iframe>
	</div>

</body>
</html>